package teleradiologia.service;

import java.util.List;

import org.springframework.security.providers.encoding.Md5PasswordEncoder;

import teleradiologia.domain.Person;
import teleradiologia.repository.PersonDao;

public class PersonManipulatorImpl implements PersonManipulator {

	private PersonDao personDao;


	@Override
	public long create(Person person) {

		return this.personDao.create(person);
	}

	@Override
	public void delete(Person person) {
		this.personDao.delete(person);
	}

	@Override
	public Person getById(long id) {
		return this.personDao.getById(id);
	}

	@Override
	public void setPersonDao(PersonDao personDao) {
		this.personDao = personDao;
	}

	@Override
	public void update(Person person) {

		this.personDao.update(person);
	}
}
